package com.doone.telmarket.domain;


/**
 * 
 * @author 吴同庆
 * @date 2009-9-17
 * @description 站点资源
 * @package     com.doone.telmarket.domain
 */
public class SiteResource implements java.io.Serializable{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private SitePath sitePath;
	
	private SiteFile siteFile;
	
	public SiteResource(SitePath sitePath,SiteFile siteFile){
		this.sitePath = sitePath;
		this.siteFile = siteFile;
	}

	public SitePath getSitePath() {
		return sitePath;
	}

	public void setSitePath(SitePath sitePath) {
		this.sitePath = sitePath;
	}

	public SiteFile getSiteFile() {
		return siteFile;
	}

	public void setSiteFile(SiteFile siteFile) {
		this.siteFile = siteFile;
	}
	
	public String getPath(){
		return getSitePath().getPath();
	}
	
	public String getFileName(){
		return getSiteFile().getFullName();
	}
	
	public String getFullPath(){
		StringBuffer buffer = new StringBuffer();
		buffer.append(getPath());
		buffer.append(getFileName());
		return buffer.toString();
	}
	
	

	
	
	

}
